#include "MultiThreadMainDlg.h"

#include <QApplication>
#include <QDebug>

int main(int argc, char *argv[])
{
    int option = 0;
    if (argc == 2) {
        option = atoi(argv[1]);
    } else {
        qDebug() << "参数错误:\n"
                 << " 0 - 默认主界面\n"
                    ;
        return 0;
    }

    QApplication a(argc, argv);
    int ret = 0;

    switch (option) {
    case 0:
    {
        MultiThreadMainDlg window;
        window.show();
        ret = a.exec();
    }
        break;
    default:
        break;
    }

    return ret;
}
